﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DesignPattern.FacadePattern.sample01
{
    public class Computer
    {
        private CPU cpu;
        private Disk disk;

        private Memory memory;

        public Computer()
        {
            cpu = new CPU();
            disk = new Disk();
            memory = new Memory();
        }

        public void shutDown()
        {
            Console.WriteLine("Disk shutDown");
            cpu.shutDown();
            disk.shutDown();
            memory.shutDown();
        }

        public void start()
        {
            Console.WriteLine("Computer start");
            cpu.start();
            disk.start();
            memory.start();
        }

    }
}
